package com.mylearn.myblog.service;

import com.mylearn.myblog.entity.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {

	Tag saveTag(Tag tag);

	Tag getTag(Long id);

	Tag getTagByName(String name);

	Page<Tag> listTag(Pageable pageable);

	Tag updateTag(Long id,Tag tag);

	void deleteTag(Long id);

	List<Tag> listAll();
}
